package com.blood.core.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * @author daoren
 * @date 2021/3/3 10:30
 * @description 平台
 */
public enum PlatformTypeEnum {
    APP("APP"),
    SYS_WEB("系统平台"),
    OTHER("其他"),
    ;

    private String value;

    PlatformTypeEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }

    public static PlatformTypeEnum find(String value) {
        PlatformTypeEnum[] var1 = values();
        int var2 = var1.length;
        for (int var3 = 0; var3 < var2; ++var3) {
            PlatformTypeEnum status = var1[var3];
            if (status.name().equals(value)) {
                return status;
            }
        }
        return OTHER;
    }

    public static List<PlatformTypeEnum> getList() {
        ArrayList<PlatformTypeEnum> list = new ArrayList<>();
        for (PlatformTypeEnum value : values()) {
            if (!value.name().equals(OTHER.name())) {
                list.add(value);
            }
        }
        return list;
    }
}
